Reads a file from within the package associated with this session and writes it to an HttpResponse.
Parent Type: LearningSession
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public abstract void Render ( ) |
context
The context within which to render the file.
| Exception type | Condition |
| ArgumentNullException | Thrown if context is not provided. |
| InvalidOperationException | Thrown if |
| FileNotFoundException | Thrown if the file referenced in |
| DirectoryNotFoundException | Thrown if the file refernced in |
At a minimum, the caller must set the following properties in the context:
RelativePathResponseMimeTypeFormId, if a default was used.Response of context. This method will not read and write content that is not contained within the package. For instance, if the entry point for an activity is an absolute URL and the caller passes it as the context.RelativePath, this method will not succeed. It also will not render the package manifest.